﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Base_Company
{
    /// <summary>
    /// 公司首页顶部和底部图片
    /// </summary>
    [Table("Base_ComapnyHBImg")]
    public class Base_ComapnyHBImg
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 站点Id
        /// </summary>
        public String CompanyId { get; set; }

        /// <summary>
        /// 类型Id
        /// </summary>
        public HBImgType Type { get; set; }

        /// <summary>
        /// 只在首页
        /// </summary>
        public Boolean IsIndexShow { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 图片路径
        /// </summary>
        public String ImgPath { get; set; }

        /// <summary>
        /// 链接地址
        /// </summary>
        public String LinkURL { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public Int32 Orders { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public Boolean Deleted { get; set; }

    }

    public enum HBImgType
    { 
       顶部 = 0,
       底部 = 1
    }
}